package cz.proks.simplecalendarmanager.client.service;

import java.util.Date;
import java.util.List;

import com.google.gwt.user.client.rpc.AsyncCallback;

import cz.proks.simplecalendarmanager.shared.model.Calendar;
import cz.proks.simplecalendarmanager.shared.model.CalendarEvent;

public interface CalendarServiceAsync {
	void list(Date from, Date to, AsyncCallback<List<Calendar>> callback);
	
	void addEvent(CalendarEvent event, AsyncCallback<Void> callback);
	void modifyEvent(CalendarEvent event, AsyncCallback<Void> callback);
	void deleteEvent(CalendarEvent event, AsyncCallback<Void> callback);
}
